package com.xu.wemall.entry;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.io.Serializable;

@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@ContentRowHeight(50) // 设置 Cell 高度 为50
@HeadRowHeight(40)    //  设置表头 高度 为 40
@ColumnWidth(30)
@TableName("sys_user")
public class User extends BaseModel implements Serializable {

    @ColumnWidth(35)
    @ExcelProperty(value = "用户名", index = 0)
    private String userName;

    @ColumnWidth(25)
    @ExcelProperty(value = "用户密码", index = 1)
    private String password;

}